import {} from 'react';
import NumItem from './NumItem';
import styles from './index.module.less';
import NumData from '@/config/data/num';

interface INumListProps {
    data: any;
}

export default function NumList (props: INumListProps) {
    const { data } = props;
    return(
        <div className={styles['num-list']}>
            {
                NumData.map(item => {
                    return(
                        <NumItem 
                            item={item}
                            data={data}
                            key={item.filed}
                        />
                    );
                })
            }
        </div>
    );
};
